#ifndef hal_move_H
#define hal_move_H

#include <stdint.h>
#include <hal_configer.h>

typedef struct
{
    uint8_t Status;
    int32_t Count;
    int32_t CountMax;
    uint16_t PWMcount;
    uint16_t PWMneed;
} MotorSCurveSt;

typedef struct
{
    uint8_t number[4];
    float current[4];
} MotorMoveSt;

void hal_MotorStepCtrlDriveSet(DriveStatuesEn DriveFlag);

void HAL_AD7689_Init(uint8_t groupid, uint8_t motor_num);

float HAL_AD7689CurrentRead(uint8_t groupid, uint8_t motor_num);

void hal_MotorMoveStart();

#endif